﻿using DAL;
using IBLL;
using IDAL;
using Model;
using Model.ShowViewPayment;
using System;
using System.Collections.Generic;
using System.Text;

namespace BLL
{
    public class PaymentBLL : IPaymentBLL
    {
        IPaymentDAL _dal;
        public PaymentBLL(IPaymentDAL dal)
        {
            _dal = dal;
        }

        //添加病人支付订单
        public int AddPayment(Payment p)
        {
            return _dal.AddPayment(p);
        }

        /// <summary>
        /// 绑定支付类型
        /// </summary>
        /// <returns></returns>
        public List<ChargeType> BangChargeType()
        {
            return _dal.BangChargeType();
        }

        /// <summary>
        /// 绑定优惠方式
        /// </summary>
        /// <returns></returns>
        public List<Discount> BangDiscount()
        {
            return _dal.BangDiscount();
        }

        //绑定病人编号下拉
        public List<Patient> BindPatient()
        {
            return _dal.BindPatient();
        }
        //根据患者编号反填
        public List<FanTianView> FanTian(int fid)
        {
            return _dal.FanTian(fid);
        }

        //查询病人支付信息
        public List<ShowPaymentView> GetPayment(string name)
        {
            return _dal.GetPayment(name);
        }
    }
}
